﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WLYT.Application.Interfaces;
using WLYT.Domain.Model;
using WLYT.Repository;

namespace WLYT.Application.Services
{
    public class Sys_MenusService : BaseService<Sys_Menus>, ISys_MenusService
    {
        public ISqlSugarRepository<Sys_Menus> SysMenuRepository;
        public Sys_MenusService(ISqlSugarRepository<Sys_Menus> sysMenuRepository) : base(sysMenuRepository)
        {
            SysMenuRepository = sysMenuRepository;
        }

        public async Task<List<Sys_Menus>> GetAll()
        {
            return await SysMenuRepository.GetListAsync();
        }
    }
}
